﻿using StockholmsStad.Windows.UI.Modules.Maintenance.Interfaces;
using StockholmsStad.Windows.UI.Modules.Maintenance.Models;

namespace StockholmsStad.Windows.UI.Modules.Maintenance.Views
{
    /// <summary>
    /// Interaction logic for TabItemValueTypesView.xaml
    /// </summary>
    public partial class TabItemValueTypesView : IValueTypesView
    {
        public TabItemValueTypesView(IMaintenanceService service)
        {
            InitializeComponent();
            Model = service.GetValueTypes();
        }

        #region IValueTypesView Members

        public ValueTypesPresentationModel Model
        {
            get { return DataContext as ValueTypesPresentationModel; }
            set { DataContext = value; }
        }

        #endregion
    }
}
